import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import store from './react-redux/store'
import ReactReduxUse from './react-redux/ReactReduxUse'


ReactDOM.render((
    // 把Provider组件渲染到根组件里面，所有被Provider组件包含的子组件，就可以访问到全局状态
    <Provider store={store}>
        <ReactReduxUse />
    </Provider>
), document.getElementById('root'))